﻿<%@ Page Title="数据查询" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FoodSearchList.aspx.cs" Inherits="StoragePeriod.Web.FoodTesting.FoodSearchList" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
    .layout{background:url(../images/images_25.jpg) no-repeat; }
    .Right_title{width:764px; height:32px; background-position:0px 0px;}
    .Right_center{height:456px;}
    .datalist{ width:100%;padding-top:10px; clear:both; height:410px;overflow-x:auto; overflow-y:auto;}
    .datalist table{margin:0px auto; background-color:#fff;}
    .datalist table tbody tr td{border:1px solid #6293ba; height:20px; line-height:20px;}
    .datalist table tbody tr{ background-color:#fff;}
    </style>
    <script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".listtr").live("mouseover", function () {
                $(this).css("background-color", "#e1eaf3");
            }).live("mouseout", function () {
                $(this).css("background-color", "#fff");
            });

        });

        function IsV() {
            var b = true;
            if ($("#MainContent_txtStartTime").val() == "") {
                alert('请选择开始时间！');
                return false;
            }
            if ($("#MainContent_txtEndTime").val() == "") {
                alert('请选择结束时间！');
                return false;
            }
            return b;
        }

    </script>
</asp:Content>
<asp:Content ID="BodyContentRight" ContentPlaceHolderID="MainContent" runat="server">
<div class="Right_title">
    <ul>
        <li id="Right_title_li_0" showid="0">数据查询</li>
    </ul>
</div>
<div class="Right_center">
    <div id="center_0" class="center_Main">
        <div class="center_btnlist">
            <ul>
               <li>查询时间：</li>
               <li><asp:TextBox ID="txtStartTime" runat="server" CssClass="input" onclick="WdatePicker()"></asp:TextBox></li>
               <li>至</li>
               <li><asp:TextBox ID="txtEndTime" runat="server" CssClass="input" onclick="WdatePicker()"></asp:TextBox></li>
               <li class="width200"><asp:Button ID="BtnSearch" runat="server" Text="查询"  CssClass="btn_0" OnClientClick="return IsV();" onclick="BtnSearch_Click" /></li>
               <li style="width:100px;"></li>
               <li><asp:Button ID="BtnExport" runat="server" Text="导出Excel" CssClass="btn_1"  onclick="BtnExport_Click" /></li>
            </ul>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:HiddenField ID="HidRawList" runat="server" Value="" />
        <div class="datalist">
            <table class="rtb_01" border="1" cellpadding="0" cellspacing="0" width="98%">
                <thead>
                    <tr>
                        <th style="width:40px;">序号</th>
                        <th style="width:120px;">原料名称</th>
                        <th style="width:120px;">时间</th>
                        <th>感官评分</th>
                        <th>Vc含量</th>
                        <th>含水量(mg/100g)</th>
                        <th>总糖量</th>
                        <th>蛋白质含量(g/100g)</th>
                        <th>锌含量(mg/100g)</th>
                        <th>维生素A含量</th>
                        <th>维生素E含量</th>
                        <th>氨基酸含量</th>
                        <th>膳食纤维含量</th>
                        <th>铜含量</th>
                        <th>铁含量</th>
                        <th>锌含量</th>
                        <th>钙含量</th>
                        <th>镁含量</th>
                        <th>磷含量</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepList" runat="server">
                        <ItemTemplate>
                            <tr class="listtr">
                                <td align="center"><%#Eval("ID")%></td>
                                <td align="left"><%#Eval("RawName")%></td>
                                <td align="left"><%#Eval("FoodTime")%></td>
                                <td><%#Eval("SenseScore")%></td>
                                <td><%#Eval("VCFood")%></td>
                                <td><%#Eval("WaterFood")%></td>
                                <td><%#Eval("CarbohydratesFood")%></td>
                                <td><%#Eval("ProteinFood")%></td>
                                <td><%#Eval("MineralFood")%></td>
                                <td><%#Eval("VAFood")%></td>
                                <td><%#Eval("VEFood")%></td>
                                <td><%#Eval("AminoAcidFood")%></td>
                                <td><%#Eval("DietaryFiberFood")%></td>
                                <td><%#Eval("CuFood")%></td>
                                <td><%#Eval("FeFood")%></td>
                                <td><%#Eval("ZnFood")%></td>
                                <td><%#Eval("CaFood")%></td>
                                <td><%#Eval("MgFood")%></td>
                                <td><%#Eval("PFood")%></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</div>
<div class="Right_foot">
    <img src="../images/images_29.jpg" width="764" height="8"/>
</div>
</asp:Content>
